<?php

namespace App\Observers;

use App\Models\Apiuser;

class Apiuesrobserver
{
    //添加动作之前设置密码
   public function creating(Apiuser $apiuser){
       $apiuser->password = bcrypt(request()->input('password'));
   }
}
